package com.xrkj.b2c.service.impl.sys;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.xrkj.b2c.dao.sys.SysMemberLevelMapper;
import com.xrkj.b2c.exception.DataAccessException;
import com.xrkj.b2c.model.sys.SysMemberLevel;
import com.xrkj.b2c.service.sys.SysMemberLevelService;

/**
 * 
 * <B>系统名称：</B><BR>
 * <B>模块名称：</B><BR>
 * <B>中文类名：</B>会员等级服务类<BR>
 * <B>概要说明：</B><BR>
 * @author 赵子靖
 * @since 2018年07月15日
 */
@Service
public class SysMemberLevelServiceImpl implements SysMemberLevelService{
    @Autowired
    private SysMemberLevelMapper sysMemberLevelDao;
    
    
    @Transactional(readOnly=false,propagation = Propagation.REQUIRED,rollbackFor=DataAccessException.class)
    public int deleteByPrimaryKey(String id) {
        return sysMemberLevelDao.deleteByPrimaryKey(id);
    }
    @Transactional(readOnly=false,propagation = Propagation.REQUIRED,rollbackFor=DataAccessException.class)
    public int insert(SysMemberLevel record) {
        return sysMemberLevelDao.insert(record);
    }
    @Transactional(readOnly=false,propagation = Propagation.REQUIRED,rollbackFor=DataAccessException.class)
    public int insertSelective(SysMemberLevel record) {
        return sysMemberLevelDao.insertSelective(record);
    }
    @Transactional(readOnly=false,propagation = Propagation.REQUIRED,rollbackFor=DataAccessException.class)
    public SysMemberLevel selectByPrimaryKey(String id) {
        return sysMemberLevelDao.selectByPrimaryKey(id);
    }
    @Transactional(readOnly=false,propagation = Propagation.REQUIRED,rollbackFor=DataAccessException.class)
    public int updateByPrimaryKeySelective(SysMemberLevel record) {
        return sysMemberLevelDao.updateByPrimaryKeySelective(record);
    }
    @Transactional(readOnly=false,propagation = Propagation.REQUIRED,rollbackFor=DataAccessException.class)
    public int updateByPrimaryKey(SysMemberLevel record) {
        return sysMemberLevelDao.updateByPrimaryKey(record);
    }
	
    /**
     * 
     * <B>方法名称：</B>获取列表<BR>
     * <B>概要说明：</B><BR>
     * 
     * @author perry
     * @since 2017年11月9日
     * @param paramter
     * @return
     */
    public Integer findMemberLevelTotal(Map<String, Object> paramter){
        return sysMemberLevelDao.findMemberLevelTotal(paramter);
    }

    /**
     * 
     * <B>方法名称：</B>获取记录数<BR>
     * <B>概要说明：</B><BR>
     * 
     * @author perry
     * @since 2017年11月9日
     * @param paramter
     * @return
     */
    public List<SysMemberLevel> findMemberLevelList(Map<String, Object> paramter){
        return sysMemberLevelDao.findMemberLevelList(paramter);
    }
	
}
